<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
</head>
<body>
<div id='resultado_gd_contactos' >
    <s:actionmessage theme="jquery" />
    <s:actionerror theme="jquery" /> 
     <img id="indicator_contactosx" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /> 
<table width="100%">
<tr Height='10px' >
			<td width='15%' class='tabla_th1' >Tipo</td>
			<td width='25%' class='tabla_th1' >Contacto</td>
		    <td width='10%' class='tabla_th1' >Telefono</td>
		    <td width='10%' class='tabla_th1' >Celular</td>
		    <td width='15%' class='tabla_th1' >Email</td>
		    <td width='20%' class='tabla_th1' >Accion</td>
</tr>
 </table>
 <s:iterator var="outer2" status="i_status" value="tabla_cc" >
        <s:set name="n_ctd"><s:property value="#outer2.id" /></s:set>
        <s:set name="n_codcon"><s:property value="#outer2.codigo" /></s:set>
        <s:set name="n_contacto"><s:property value="#outer2.contacto" /></s:set>
		<s:set name="n_telefono"><s:property value="#outer2.tel" /></s:set>
	    <s:set name="n_cel"><s:property value="#outer2.cel" /></s:set> 
	    <s:set name="n_email"><s:property value="#outer2.email" /></s:set> 
	   <s:form action="guardar_contacto_cli.action" name='form_guardar_cont%{n_ctd}' id="form_guardar_cont%{n_ctd}" theme="simple">
	   <table width="100%">
	      <tr Height='10px' >
		   <td width='15%' >
		        <s:set name="n_codigo"><s:property value="cod_cliente" /></s:set>
				<s:set name="n_suc_cod"><s:property value="#outer2.cod_sucursal" /></s:set>
			    <s:set name="n_suc_des"><s:property value="#outer2.sucursal" /></s:set>
			    <s:hidden name='contacto.codigo' id='txtcodx_%{n_ctd}'  value='%{n_codcon}' ></s:hidden>  
			    <s:hidden name='cod_cliente' id='txtcodprospectox_%{n_ctd}'  value='%{n_codigo}' ></s:hidden>  
			    <s:set name="n_tipo_des"><s:property value="#outer2.tipo" /></s:set>
			    <s:select theme='simple' cssClass='caja_3' name="contacto.tipo" headerKey="%{n_tipo_des}" headerValue="%{n_tipo_des}" value="%{n_tipo_des}"
			        list="#{'ADMINISTRATIVO':'ADMINISTRATIVO','CONDOMINIO':'CONDOMINIO','JURIDICO':'JURIDICO', 'REPRESENTANTE':'REPRESENTANTE','TECNICO':'TECNICO','VIGILANCIA':'VIGILANCIA'}"
 			    /> 
		   </td>
		   <td width='25%' >
		      <s:textfield theme='simple' cssClass='caja1' size='25' name='contacto.contacto' id='txtcontacto_%{n_ctd}' value='%{n_contacto}' > </s:textfield> 
		   </td>
		   <td width='10%' >	
				<s:textfield theme='simple' cssClass='caja1' size='10' name='contacto.tel' id='txttelefono_%{n_ctd}' value='%{n_telefono}' > </s:textfield>   
		   </td>
		   <td width='10%' >
		      <s:textfield theme='simple' cssClass='caja1' size='10' name='contacto.cel' id='txtcelular_%{n_ctd}' value='%{n_cel}'  > </s:textfield> 
		   </td>
		    <td width='15%' >
		      <s:textfield theme='simple' cssClass='caja1' size='25' name='contacto.email' id='txtemail_%{n_ctd}' value='%{n_email}'  > </s:textfield> 
		    </td>
		    <td width='20%' >
		       <sj:submit cssClass="boton_sia1" targets="resultado_gd_contactos" indicator="indicator_contactosx" button="true"
				 value="Guardar" theme="simple" id='btn_guardar_cc_%{n_ctd}' />
		    </td>
	   </tr>
	    </table>
	     </s:form>  
</s:iterator>
</div>
</body>
</html>
